package result;

public class Score {
    private int SerialNumber;
    private String name;
    private String StudentID;
    private String CourseName;
    private int Score;

    public Score(int SerialNumber, String name, String StudentID, String CourseName, int Score)
    {
        this.SerialNumber = SerialNumber;
        this.name = name;
        this.StudentID = StudentID;
        this.CourseName = CourseName;
        this.Score = Score;
    }

    public int getSerialNumber() {
        return SerialNumber;
    }

    public void setSerialNumber(int serialNumber) {
        SerialNumber = serialNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStudentID() {
        return StudentID;
    }

    public void setStudentID(String studentID) {
        StudentID = studentID;
    }

    public String getCourseName() {
        return CourseName;
    }

    public void setCourseName(String courseName) {
        CourseName = courseName;
    }

    public int getScore() {
        return Score;
    }

    public void setScore(int score) {
        Score = score;
    }

    @Override
    public String toString() {
        return "成绩表{" +
                "序号:" + SerialNumber +
                ",名字:'" + name + '\'' +
                ", 学号:'" + StudentID + '\'' +
                ", 课程名称:'" + CourseName + '\'' +
                ", 成绩:" + Score +
                '}';
    }
}
